<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
     var a=[1,2,3];
     var b=[4,5,6];

     alert(a.concat(b));
    </script>
</head>
<body>

</body>
</html>